package com.active.dao;

import com.active.bean.ActiveList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ActiveListMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(ActiveList activeList);

    ActiveList selectByPrimaryKey(Integer id);

    ActiveList selectByUserAndPrimaryKey(@Param("id") Integer id, @Param("userId") int userId);

    List<ActiveList> selectByParam(Map<String, Object> param);

    int updateByPrimaryKeySelective(ActiveList activeList);

    int updateByPrimaryKey(ActiveList activeList);
}